import fetch from 'common/src/utils/fetch';
/**
 * 获取课程白名单
 * @param {*} data
 */
function queryManualEntryCourseList(data) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryCourseController/queryManualEntryCourseList',
        method: 'post',
        data: data
    });
}

/**
 * 获取课程信息
 * @param {*} params
 */
function selectCourseInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryCourseController/selectCourseInfo',
        method: 'post',
        data: params
    });
}

/**
 * 删除白名单课程
 * @param {*} params
 */
function deleteCourseInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryCourseController/deleteCourseInfo',
        method: 'post',
        data: params
    });
}

/**
 * 导入白名单课程
 * @param {*} params
 */
function importCourseInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryCourseController/importCourseInfo',
        method: 'post',
        data: params
    });
}

/**
 * 保存白名单课程
 * @param {*} params
 */
function saveCourseInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryCourseController/saveCourseInfo',
        method: 'post',
        data: params
    });
}

/**
 * 获取学生白名单列表
 * @param {*} data
 */
function queryManualEntryStudentList(data) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryStudentController/queryManualEntryStudentList',
        method: 'post',
        data: data
    });
}

/**
 * 获取学生信息
 * @param {*} params
 */
function queryStudentInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryStudentController/queryStudentInfo',
        method: 'post',
        data: params
    });
}

/**
 * 删除白名单学生
 * @param {*} params
 */
function deleteStudentInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryStudentController/deleteStudentInfo',
        method: 'post',
        data: params
    });
}

/**
 * 导入白名单课程
 * @param {*} params
 */
function importStudentInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryStudentController/importStudentInfo',
        method: 'post',
        data: params
    });
}

/**
 * 保存白名单课程
 * @param {*} params
 */
function saveStudentInfo(params) {
    return fetch({
        url: '/api/scoremanagementservice/manualEntryStudentController/saveStudentInfo',
        method: 'post',
        data: params
    });
}

export default{
    queryManualEntryCourseList,
    selectCourseInfo,
    deleteCourseInfo,
    importCourseInfo,
    saveCourseInfo,
    queryManualEntryStudentList,
    queryStudentInfo,
    deleteStudentInfo,
    importStudentInfo,
    saveStudentInfo
};
